package com.blog.attach.mapper;

import com.blog.attach.entity.UserComment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blog.attach.entity.VO.UserCommentVO;
import com.blog.attach.entity.VO.UserReplayVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 苏离
 * @since 2022-01-18
 */
public interface UserCommentMapper extends BaseMapper<UserComment> {
 List<UserCommentVO> getCommentsByArticle(@Param("id") Integer id,
                                          @Param("pageNo") Integer pageNo,
                                          @Param("limit") Integer limit);
 Integer getCommentsCount(@Param("id") Integer id);
 boolean updateReplayCount(Integer commentId);
}
